const axios = require("axios");
import http from "@/util/http"
import store from "../store/index"

export function loginIn(userData) {
    return http.post("/login", {
        id: userData.account,
        psd: userData.psd,
    })
}

export function permission() {
    return http.get("/permission?role=" + store.state.UserToken)
}